package net.diaowen.common.base.entity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;


/**
 * 用户-组实体类
 * @author zhangyuting
 * @date 2019年5月8日
 *
 */
@Entity
@Table(name = "t_user_group", uniqueConstraints = @UniqueConstraint(columnNames = {"userId", "usergroupId"}))
public class UserGroup extends IdEntity {

	private String userId;
	private String usergroupId;
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUsergroupId() {
		return usergroupId;
	}
	public void setUsergroupId(String usergroupId) {
		this.usergroupId = usergroupId;
	}
	
}